require_relative '../helpers/session_helpers'
require_relative '../helpers/cors_helpers'
require 'pp'
Dir[File.expand_path('../resources/*.rb', __FILE__)].each { |f| require f }

module V1
  class Api < Grape::API
    helpers SessionHelpers

    version 'v1', using: :path
    format :json

    V1.constants.each do |c|
      mod = V1.const_get(c)
      include mod if mod.is_a?(ActiveSupport::Concern)
    end

  end
end
